<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/template.xhtml">
	<ui:define name="head">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Job List</title>
	</ui:define>
	<ui:define name="content">
		<h1 style="text-align: center;">Job List</h1>
		<hr />
		<h:form>
			<rich:dataTable value="#{jobTimerAction.jobs}" var="item"
				paginator="true" rows="10" id="jobList">
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Name" />
					</f:facet>
					<h:outputText value="#{item.jobName}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Start Date" />
					</f:facet>
					<h:outputText value="#{item.startDateStr}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="End Date" />
					</f:facet>
					<h:outputText value="#{item.endDateStr}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Next Timeout" />
					</f:facet>
					<h:outputText value="#{item.nextTimeoutStr}" />
				</rich:column>
			</rich:dataTable>
			<h:commandButton value="New Job" />
		</h:form>
	</ui:define>
</ui:composition>
</html>
